import axios from '@/libs/api.request'

export const addorder = ( goods_id,user_id ) => {
  return axios.request({
    url: 'order/addorder/',
    data: {'goods_id':goods_id,'user_id':user_id},
    method: 'post'
  })
}

export const querygoods = ( user_id ) => {
  return axios.request({
    url: 'order/querygoods/'+user_id+'/',
    method: 'get'
  })
}

export const queryusers = ( user_id ) => {
  return axios.request({
    url: 'order/queryusers/'+user_id+'/',
    method: 'get'
  })
}

export const adduserinfo = (data ) => {
  return axios.request({
    url: 'order/adduserinfo/',
    data: data,
    method: 'post'
  })
}